import cv2
import matplotlib.pyplot as plt
import numpy as np
from numba import uint8

def cv_show(name,img):
    cv2.imshow(name,img)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

img = cv2.imread('C:/Users/nic/Desktop/opencv/picture/girl.jpg')
#gaussion
up = cv2.pyrUp(img)
down = cv2.pyrDown(img)
cv_show('up',up)
print(img.shape)
print(up.shape)
print(down.shape)
#laplace
down = cv2.pyrDown(img)
down_up = cv2.pyrUp(down)
down_up = cv2.resize(down_up,(325,325))
laplace_1 = img - down_up
cv_show('laplace_1',laplace_1)



